package o;

import android.util.Log;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.RequiresApi;
import java.lang.reflect.Method;

@RequiresApi(18)
class oc {
    private static boolean ˎ;
    private static Method ॱ;

    static void ˏ(@NonNull ViewGroup viewGroup, boolean z) {
        ˎ();
        if (ॱ != null) {
            try {
                ॱ.invoke(viewGroup, new Object[]{Boolean.valueOf(z)});
            } catch (Throwable e) {
                Log.i("ViewUtilsApi18", "Failed to invoke suppressLayout method", e);
            } catch (Throwable e2) {
                Log.i("ViewUtilsApi18", "Error invoking suppressLayout method", e2);
            }
        }
    }

    private static void ˎ() {
        if (!ˎ) {
            try {
                ॱ = ViewGroup.class.getDeclaredMethod("suppressLayout", new Class[]{Boolean.TYPE});
                ॱ.setAccessible(true);
            } catch (Throwable e) {
                Log.i("ViewUtilsApi18", "Failed to retrieve suppressLayout method", e);
            }
            ˎ = true;
        }
    }
}
